package com.eascs.workflow.auditorReplace.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.eascs.common.util.UrlUtil;
import com.eascs.site.view.ViewContext;
import com.eascs.tag.MenuTag;
import com.eascs.workflow.auditorReplace.vo.AuditorReVo;
import com.eascs.workflow.common.controller.BaseMasterViewController;

@Controller
@RequestMapping("/auditorReplace")
public class AuditorReplaceController extends BaseMasterViewController {
	
	@RequestMapping("/index")
	public String listUser(AuditorReVo vo) {
		ViewContext.put(MenuTag.CURRENT_MENU_CODE, "auditorReplace");
		String pageUrl = "/rAuditorRp/list";
		pageUrl = UrlUtil.appendUrl(pageUrl, "userNo", vo.getUserNo() == null ? "" : vo.getUserNo());
		pageUrl = pageUrl + "&pageIndex=";
		ViewContext.put("vo", vo);
		ViewContext.put("pageUrl", pageUrl);
		return "/auditorReplace/index";
	}
}
